import {request} from '@pkg/request/src'

export enum Api {
  list = '/dict/list',
  save = '/dict/add',
  edit = '/dict/update',
  remove = '/dict/delete'
}

export const getDictTreeList = (params) => {
  return request.get(
      {
        url: Api.list,
        params: params,
      },
      {errorMessageMode: 'none', successMessageMode: 'none'},
  );
}
